/*
 * Copyright 2009 Brian Mackay brianwmackay@msn.com
 *   All Rights Reserved. See end of file
 */
package com.bmackay.maven.publisher;

/**
 * @author bmackay
 */
public class SimpleHTML {

    public static StringBuffer sb = new StringBuffer();

    public static void tableStart() {
        sb.append("<table>\n");
    }

    public static void tableEnd() {
        sb.append("</table>\n");
    }

    public static void trStart() {
        sb.append("<tr>\n");
    }

    public static void trEnd() {
        sb.append("</tr>\n");
    }

    public static void tdStart() {
        sb.append("<td>");
    }

    public static void tdEnd() {
        sb.append("</td>\n");
    }

    public static void href(String path, String name) {
        tdStart();
        sb.append("<a href=\"");
        sb.append(path);
        sb.append("\">");
        sb.append(name);
        sb.append("</a>");
        trEnd();
    }
}
/*
 * Copyright 2009 Brian Mackay brianwmackay@msn.com
 * All Rights Reserved.
 * <p/>
 * Licensed under the Apache License, Version 2.0 (the 'License');
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p/>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p/>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an 'AS IS' BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
